package core.localSerchGoodies;

import java.util.ArrayList;
import java.util.List;

public class TeamGroup {
	
	private int begin;
	private int end;
	private List<Pair<Integer>> res;
	
	public TeamGroup(int beginIndex,int endIndex){
		begin=beginIndex;
		end=endIndex;
		res=new ArrayList<Pair<Integer>>();
		for(int i=begin;i<=end;i++){
			for(int j=begin+1;j<=end;j++){
				res.add(new Pair<Integer>(new Integer(i),new Integer(j)));
			}
		}
	}
	
	public int getBeginIndex(){
		return begin;
	}
	
	public int getEndIndex(){
		return end;
	}
	
	public List<Pair<Integer>> getPermutationList(){
		return res;
	}
	
}
